package com.yami.shop.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yami.shop.bean.dto.ShopDetailSalesDto;
import com.yami.shop.bean.model.CheckAccount;
import com.yami.shop.bean.param.OrderParam;
import com.yami.shop.common.util.PageAdapter;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CheckAccountMapper extends BaseMapper<CheckAccount> {

    CheckAccount getByOrderNumber(String orderNumber);

    List<CheckAccount> listcheckAccountByOrderParam(@Param("adapter") PageAdapter adapter, @Param("checkAccount") CheckAccount checkAccount);

    Long countAccount(@Param("checkAccount") CheckAccount checkAccount);

    Double getRebateMoneyAmount();

    Double getShopBusinessVolume(Long shopId);

    Double getShopBusinessVolumeByTime(@Param("shopDetailSalesDto") ShopDetailSalesDto shopDetailSalesDto,@Param("shopId") Long shopId);
}
